const express = require('express')
const router = express.Router()
// 1. 导入验证数据的中间件
const expressJoi = require('@escook/express-joi')

// 导入删除数据接口
const delete_query = require('../router-query/delete')
// 2. 导入需要的验证规则对象
const { reg_id_schema } = require('../schema/index')

// 删除数据
router.get('/delete', expressJoi(reg_id_schema), delete_query.deletes)

module.exports = router
